// Definition of a dynamic text widget
// Copyright 2005 (C) Ralph Thomas

#ifndef MISSION_VIEW_DYNAMIC_TEXT_H
#define MISSION_VIEW_DYNAMIC_TEXT_H

#include <factory.hpp>

namespace view {
	//
	/// The dynamic_text widget looks like a regular static_text widget except
	/// that it can be bound to a value, and that if the value is editable then
	/// the widget can be clicked and an edit box will appear.
	///
	/// \param	parameters	a dictionary of parameters for the new
	///				dynamic_text widget.
	/// \param	parent		the parent of the new widget.
	/// \param	token		the factory token containing everything
	///				else for creating the widget.
	/// \return	a widget_node_t containing the new dynamic_text widget.
	//
	adobe::widget_node_t dynamic_text_factory(
		const adobe::dictionary_t&	parameters,
		const adobe::widget_node_t&	parent,
		const adobe::factory_token_t&	token );
};

#endif

